import request from "@/utils/request"

// 登录
export function login (data) {
  return request({
    url: "/puser/login",
    method: "post",
    data
  })
}

export function queryLoginInfo (data) {
  return request({
    url: "/puser/queryMessageByProjectCode",
    method: "get",
    params: data
  })
}

// 获取用户信息和菜单
export function getInfo (token) {
  return request({
    url: "/puser/queryLoginMenus",
    method: "get",
    params: { token }
  })
}

// 更新token与exp
export function updateToken () {
  return request({
    url: "/puser/updateToken",
    method: "post"
  })
}

